package com.g1.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Food {
    private int DishNumber;

    @Override
    public String toString() {
        return "Food{" +
                "DishNumber=" + DishNumber +
                ", Designatio='" + Designatio + '\'' +
                ", StartTime=" + StartTime +
                ", EndTime=" + EndTime +
                '}';
    }

    private String Designatio;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date StartTime;

    public int getDishNumber() {
        return DishNumber;
    }

    public void setDishNumber(int dishNumber) {
        DishNumber = dishNumber;
    }

    public String getDesignatio() {
        return Designatio;
    }

    public void setDesignatio(String designatio) {
        Designatio = designatio;
    }

    public Date getStartTime() {
        return StartTime;
    }

    public void setStartTime(Date startTime) {
        StartTime = startTime;
    }

    public Date getEndTime() {
        return EndTime;
    }

    public void setEndTime(Date endTime) {
        EndTime = endTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date EndTime;

}
